package com.grgbanking.voice.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.grgbanking.voice.util.ActivityUtils;
import com.grgbanking.voice.util.LogUtils;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

/**
 * Created by hesheng on 2017/6/1.
 */

public abstract class BaseActivity extends RxAppCompatActivity {

    private static final String TAG = "BaseActivity";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LogUtils.i(TAG, getClass().getSimpleName());
        ActivityUtils.add(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ActivityUtils.remove(this);
    }
}
